feat: Reporting Agent v2 — multi-repo, session cache, pluggable storage - #2489
Conversation
Co-authored-by: ashleyshaw <1805352+ashleyshaw@users.noreply.github.com>
…ent.js Co-authored-by: ashleyshaw <1805352+ashleyshaw@users.noreply.github.com>
…owner/repo format, fix test count in migration guide, add three-segment parseRepoRef test" Co-authored-by: ashleyshaw <1805352+ashleyshaw@users.noreply.github.com>
🔍 Reviewer Summary for PR #2489CI Status: ❌ Recommendations
|
1 similar comment
🔍 Reviewer Summary for PR #2489CI Status: ❌ Recommendations
|
|
Missing required section(s): Linked issues, Global DoD checklist This is a post-merge backstop for admin bypasses. Please review branch protection for develop. |
Signed-off-by: Ash Shaw <ashley@lightspeedwp.agency>
🔍 Reviewer Summary for PR #2489CI Status: ❌ Recommendations
|
|
This PR's branch name Standard pattern: Based on linked issue type: Correct template should be: No action required — this is informational. Future PRs should use the correct branch name. See Branching Strategy for more info. |
|
@copilot resolve the merge conflicts in this pull request |
|
@copilot resolve the merge conflicts in this pull request |
|
@copilot resolve the merge conflicts in this pull request |
|
@copilot resolve the merge conflicts in this pull request |
- Fix integration-workflow-pr-triage.test.js to import from ../includes/integration-workflow-helpers.js - Fix pr-triage-orchestrator.test.js to import from ../includes/pr-triage-helpers.js - Resolves module resolution errors in test suite Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HnU5BKCzp5g9bdxiuyQYkF
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HnU5BKCzp5g9bdxiuyQYkF
❌ Branch Name Validation FailedThe branch name Required Format
Allowed Branch Types
Valid Examples
Invalid Examples
SolutionRename your branch to follow the pattern and update the PR. For more information, see docs/BRANCHING_STRATEGY.md. |
Admin Override Request: Branch Naming Governance ExceptionStatus: Ready to merge (pending admin approval) SummaryPR #2489 is fully approved and ready to merge, but CI validation is blocking the merge due to the branch name Why This Exception Is WarrantedCost Analysis:
Work Status:
Governance Context:
Related Actions
RequestPlease approve one of the following:
I recommend option 1 — The work is complete and the governance fix is in progress (#2820). 🤖 Generated with Claude Code Generated by Claude Code |
Summary
Upgrades Reporting Agent from v1 to v2.0.0 with multi-repository support, in-memory session caching, and pluggable storage backends. All v1 exports remain fully backwards-compatible.
Changes Made
Added
generateMultiRepoReport()aggregates data across repos;parseRepoRef()normalises owner/repo strings;buildRepoCacheKey()produces stable cache keyscacheGet,cacheSet,cacheClear,cacheSize)setStorage,resetStorage,createMemoryStoragereplace hard-coded fs calls, enabling test-friendly in-memory backends.github/reports/migration/reporting-agent-v2-migration-guide-2026-08-29.mdChanged
saveReportnow routes through active storage backendrunAgentdefault response includesversionalongsidecategoriesandmessageimport.meta.url/fileURLToPathimports../lib/→../includes/for helper modulesFixed
runAgent cache:getno longer double-callscacheGetparseRepoRefnow properly rejects three-segment strings like "owner/org/repo"integration-workflow-pr-triage.test.jsandpr-triage-orchestrator.test.jsChangelog
Added
generateMultiRepoReport()AGENT_VERSIONexport for audit trails and reportingChanged
saveReportto support pluggable storage backendsrunAgentdefault action now includes version informationFixed
Linked Issue
Resolves #2037
🤖 Generated with Claude Code